import { ShowGameAthleteInfo } from '@/types/game.page';
import ShowPoints from '../components/ShowPoints';
import classes from './index.module.css';

export default function GameAthletes({
  infos,
}: {
  infos: ShowGameAthleteInfo[];
}) {
  return (
    <div className={classes.GameAthletes}>
      {infos.map((info, index) => (
        <ShowPoints info={info} key={index} />
      ))}
    </div>
  );
}
